FROM alyadan/lnmp:8.0

ENV COMPOSER_HOME /root/composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
ENV PATH $COMPOSER_HOME/vendor/bin:$PATH
RUN apt install -y git
#FROM php:8.0-fpm
#
#RUN pear config-set http_proxy http://192.168.2.42:1080
#
#RUN pecl install redis swoole
#
#RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini && echo "extension=redis" >> /usr/local/etc/php/php.ini &&
#echo "extension=swoole" >> /usr/local/etc/php/php.ini
#
#RUN docker-php-ext-install pdo_mysql && docker-php-ext-enable pdo_mysql && \
#docker-php-ext-install opcache && docker-php-ext-enable opcache
#RUN pear config-set http_proxy 192.168.50.96:1087 && usermod -u 501 www-data
##RUN usermod -u 501 www-data
#RUN apt update  &&  apt install -y sudo systemctl supervisor vim cron
#ENV TZ=Asia/Shanghai
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezon
